using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Saiket.CommonInfo;
using Saiket.BLL;

public partial class NewDetails : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

            string newsid;
            try
            {
                newsid = Request.Params["newsid"].ToString();
            }
            catch 
            {
                newsid = null;
            }

            if (newsid != null)
            {
                string command = @"SELECT * FROM [News] where id = @id";
                 SqlDataSource1.SelectCommand = command;
                 SqlDataSource1.SelectParameters.Add("id", newsid);
                 DataList1.DataBind();
                 // DataTable dt =(DataTable) DataList1.DataSource;
                 //ContentPlaceHolder cph = (ContentPlaceHolder)Page.FindControl("ContentPlaceHolder1");
                 //DataList dList = (DataList)cph.FindControl("DataList1");
                 //Label lb = (Label)dList.FindControl("NewsTitleLabel");
                 //Label lb = (Label)DataList1.Co;
                 Page.Title = CommonInfo.GetBasicTitle() + " | News | " + Request.Params["newstitle"].ToString()+"|Recent Update of Saiket|Geek news of bangladesh";
                
                SqlDataSource1.Dispose();

            }
    }
}
